import axiosService from "@/utils/request.js"

export function getOjQuestionList(pageForm) {
    return axiosService({
        url: "/admin/oj/page",
        method: "post",
        data: pageForm
    })
}

export function addOjQuestionService(param = {}) {
    return axiosService({
        url: "/admin/oj/add",
        method: "post",
        data: param
    })
}

export function getOjQuestionDetailService(id) {
    return axiosService({
        url: "/admin/oj/get-detail",
        method: "get",
        params: {id}
    })
}

export function updateOjQuestionDetailService(param) {
    return axiosService({
        url: "/admin/oj/edit",
        method: "post",
        data: param
    })
}

export function deleteOjQuestionDetailService(id) {
    return axiosService({
        url: "/admin/oj/delete",
        method: "delete",
        params: {id}
    })
}